package com.padakeji.android.pworks.example.nav;

import android.graphics.drawable.Drawable;

import com.padakeji.android.pworks.example.R;
import com.padakeji.android.pworks.module.nav.bean.NavItem;
import com.padakeji.android.pworks.module.nav.view.NavActivity;

/**
 * Created by AtanL on 2015/9/23.
 */
public class NavTestActivity extends NavActivity {

    @Override
    protected NavItem[] getNavItems() {
        return new NavItem[] {
                new NavItem(
                        NavTestFragment.getNavTestFragment(1),
                        getResources().getDrawable(R.drawable.ic_launcher),
                        getResources().getDrawable(R.drawable.ic_arrow_back_black_24dp),
                        "第一个",
                        getResources().getColor(R.color.color_nav_sel),
                        getResources().getColor(R.color.color_nav_unsel)
                ),
                new NavItem(
                        NavTestFragment.getNavTestFragment(1),
                        getResources().getDrawable(R.drawable.ic_launcher),
                        getResources().getDrawable(R.drawable.ic_check_box_black_24dp),
                        "第一个",
                        getResources().getColor(R.color.color_nav_sel),
                        getResources().getColor(R.color.color_nav_unsel)
                ),
                new NavItem(
                        NavTestFragment.getNavTestFragment(1),
                        getResources().getDrawable(R.drawable.ic_launcher),
                        getResources().getDrawable(R.drawable.ic_check_box_black_24dp),
                        "第一个",
                        getResources().getColor(R.color.color_nav_sel),
                        getResources().getColor(R.color.color_nav_unsel)
                ),
                new NavItem(
                        NavTestFragment.getNavTestFragment(1),
                        getResources().getDrawable(R.drawable.ic_launcher),
                        getResources().getDrawable(R.drawable.ic_check_box_black_24dp),
                        "第一个",
                        getResources().getColor(R.color.color_nav_sel),
                        getResources().getColor(R.color.color_nav_unsel)
                ),
        };
    }

    @Override
    protected boolean isPageSlidable() {
        return true;
    }

    @Override
    protected Drawable getNavTabBackgroundDrawable() {
        return null;
    }
}
